package com.example.transactiondemo.service.impl;

import com.example.transactiondemo.entity.Userinfo;
import com.example.transactiondemo.mapper.UserMapper;
import com.example.transactiondemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void addUser(Userinfo user) {
        userMapper.insert(user);
    }
}
